package com.bbx.api.sdk.model.passanger.Return.MyOrderList;

import com.bbx.api.sdk.model.passanger.Return.PriceDetail;
import com.bbx.api.util.CutNameUtils;

public class MyOrderList {
	public int id;
	public String tel;
	public String order_name;//暂时没啥用
	public int appoint_type;//暂时没啥用，订单详情的
	public int urge_times;//暂时没啥用，订单详情的
	public String head_pic;//暂时没啥用，订单详情的
	public int urgen;//暂时没啥用
	public String time;//等于order_time，time是订单详情才有用
	public String cancel_reason;
	public int reason_type;
	public int travel_type;
	public Locations locations;
	public String line_id;
	public String order_time;
	public String appoint_time;
	public String coupon_id;
	/**预估价格车费*/
	public double price;
	public double total_price;
	/**支付金额*/
	public double actual_price=-1;
	public int coupon_sum;
	public Discount discount;
	public String order_id;
	public int order_status;
	public int order_type;
	public String valuate_status;// 1待评价,2:已评价
	public String driver_id;
	public String driver_name;
	public String car_NO;
	public String driver_phone;
	public double driver_star;
	public double star;
	public String suggest;
	public String order_message;
	public PriceDetail price_detail;
	//99为爱心直通车,98顺风车
	public int order_origin;
	public int origin_type;
	/**打表还是计费*/
	public int calc_type;
	private String city;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	public void setCancel_reason(String cancel_reason) {
		this.cancel_reason = cancel_reason;
	}

	public String getCancel_reason() {
		return cancel_reason;
	}

	public void setCancel_reason(int reason_type) {
		this.reason_type = reason_type;
	}

	public int getReason_type() {
		return reason_type;
	}
	
	public int getTravel_type() {
		return travel_type;
	}

	public void setTravel_type(int travel_type) {
		this.travel_type = travel_type;
	}

	public Locations getLocations() {
		return locations;
	}

	public void setLocations(Locations locations) {
		this.locations = locations;
	}

	public String getLine_id() {
		return line_id;
	}

	public void setLine_id(String line_id) {
		this.line_id = line_id;
	}

	public String getOrder_time() {
		return (order_time==null||order_time.equals(""))?time:order_time;
	}

	public void setOrder_time(String order_time) {
		this.order_time = order_time;
	}

	public String getAppoint_time() {
		return appoint_time;
	}

	public void setAppoint_time(String appoint_time) {
		this.appoint_time = appoint_time;
	}

	public String getCoupon_id() {
		return coupon_id;
	}

	public void setCoupon_id(String coupon_id) {
		this.coupon_id = coupon_id;
	}

	public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	public int getOrder_status() {
		return order_status;
	}

	public void setOrder_status(int order_status) {
		this.order_status = order_status;
	}

	public int getOrder_type() {
		return order_type;
	}

	public void setOrder_type(int order_type) {
		this.order_type = order_type;
	}
	public int getOrder_origin() {
		return order_origin;
	}

	public void setOrder_origin(int order_origin) {
		this.order_origin = order_origin;
	}
	public int getOrigin_type() {
		return origin_type;
	}

	public void setOrigin_type(int origin_type) {
		this.origin_type = origin_type;
	}
	public String getValuate_status() {
		return valuate_status;
	}

	public void setValuate_status(String valuate_status) {
		this.valuate_status = valuate_status;
	}

	public String getDriver_id() {
		return driver_id;
	}

	public void setDriver_id(String driver_id) {
		this.driver_id = driver_id;
	}

	public String getDriver_name() {
		return CutNameUtils.getcutSurname(driver_name);
	}

	public void setDriver_name(String driver_name) {
		this.driver_name = driver_name;
	}

	public String getCar_NO() {
		return car_NO;
	}

	public void setCar_NO(String car_NO) {
		this.car_NO = car_NO;
	}

	public String getDriver_phone() {
		return driver_phone;
	}

	public void setDriver_phone(String driver_phone) {
		this.driver_phone = driver_phone;
	}

	public double getDriver_star() {
		return driver_star;
	}

	public void setDriver_star(double driver_star) {
		this.driver_star = driver_star;
	}

	public double getStar() {
		return star;
	}

	public void setStar(double star) {
		this.star = star;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getTotal_price() {
		return total_price;
	}

	public void setTotal_price(double total_price) {
		this.total_price = total_price;
	}
	public double getActual_price() {
		return actual_price;
	}

	public void setActual_price(double actual_price) {
		this.actual_price = actual_price;
	}
	public int getCoupon_sum() {
		return coupon_sum;
	}

	public void setCoupon_sum(int coupon_sum) {
		this.coupon_sum = coupon_sum;
	}

	public String getSuggest() {
		return suggest;
	}

	public void setSuggest(String suggest) {
		this.suggest = suggest;
	}

	public String getMessage() {
		return order_message == null ? "" : order_message;
	}

	public void setMessage(String order_message) {
		this.order_message = order_message;
	}

	public Discount getDiscount() {
		return discount;
	}

	public void setDiscount(Discount discount) {
		this.discount = discount;
	}
	public PriceDetail getPrice_Detail() {
		return price_detail;
	}

	public void setPrice_Detail(PriceDetail price_detail) {
		this.price_detail = price_detail;
	}
    public void setCalcType(int calc_type){
    	this.calc_type=calc_type;
    }
    public int getCalcType(){
    	return calc_type;
    }
	public void setCity(String city){
		this.city=city;
	}
	public String getCity(){
		return city!=null?city:"";
	}
}
